/*
 * @Author: chentao 
 * @Date: 2022-05-13 14:16:36 
 * @Last Modified by: chentao
 * @Last Modified time: 2022-05-13 17:45:18
 * 5.20 构造签名
 *  { 
 *     new (ParamTypeList):Type
 *   }：Type
 */
let myType:{x:number,y:number,z:number} = {x:3,y:5,z:6}
console.log("myType",myType)
//字面量类型
let MyDog:{new (name:string):object}

class MyDogModel{
    private name:string;
    constructor(name:string){
        this.name = name;
    }
}

MyDog = MyDogModel;
let myDog = new MyDog("小狗");
console.log(myDog)


